Moodle Development - The File Api